#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
int main(void)
{
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) 
	{
		double h, w;
		scanf("%lf %lf", &h, &w);
		double stand = (h - 100) * 0.9 * 2;
		if (fabs(w - stand) < stand * 0.1) 
		{
			printf("You are wan mei!\n");
		}
		else if (stand < w) 
		{
			printf("You are tai pang le!\n");
		}
		else 
		{
			printf("You are tai shou le!\n");
		}
	}
	return 0;
}